package com.seashop.controller;


import com.seashop.request.LocalTransRequestParam;
import com.seashop.service.IDataDictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 翻译词条表 前端控制器
 * </p>
 *
 * @author moredln
 * @since 2020-08-11
 */
@RestController
@RequestMapping("/dataDictionary")
@Api(tags = "数据字典表")
public class DataDictionaryController {

    @Autowired
    private IDataDictionaryService dataDictionaryService;

    @GetMapping("/localTrans")
    @ApiOperation(value = "本地字典表翻译")
    public String localTrans(LocalTransRequestParam param) {
        return dataDictionaryService.localTrans(param);
    }
}

